package com.winter.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.winter.model.PersonalRelease;
@Repository
public interface PersonalReleaseMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PersonalRelease record);

    Long insertSelective(PersonalRelease record);

    PersonalRelease selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PersonalRelease record);

    int updateByPrimaryKeyWithBLOBs(PersonalRelease record);

    int updateByPrimaryKey(PersonalRelease record);
    
    /**
     * 查询职场 高级人才列表
     * @return
     */
    List<PersonalRelease> queryPageList(@Param("orderBy")String orderBy,@Param("key")String key,
    		@Param("userNo")String userNo,@Param("open")Short open,@Param("timeStart")String timeStart,@Param("timeEnd")String timeEnd,@Param("dcSalary")String dcSalary,
    		@Param("startWorklife")Integer startWorklife,@Param("endWorklife")Integer endWorklife,@Param("startWork")Integer startWork,@Param("endWork")Integer endWork);
   
    /**
     * 查询职场 高级人才详情
     * @return
     */
    List<PersonalRelease> queryById(@Param("id")Long id,@Param("userNo")String userNo,@Param("hirejob")String hirejob,@Param("open")Short open);
    
    /**
     * 查询发布简历列表
     * @return
     */
    List<PersonalRelease> queryPublishList(@Param("userNo")String userNo);
    
    /**
     * 聘请的人才列表
     * @return
     */
    List<PersonalRelease> queryEmployList(@Param("userNo")String userNo);
}